import { activityAxiosout } from '@/axios'
export default {
    methods: {
        async fetchLongTermToken() {
            try {
            //  const shortToken = 
              const response = await apiClient.get('/pf/api/v3/activity/getAuthTokenToken', {
                shortTermToken: 'YOUR_SHORT_TERM_TOKEN'
              });
              const longTermToken = response.data.longTermToken;
      
              // 将长期Token保存到本地存储或Vuex等适合的地方
              // localStorage.setItem('longTermToken', longTermToken);
              // this.$store.commit('setLongTermToken', longTermToken);
      
              // 使用长期Token进行后续请求
            //   this.fetchData();
            } catch (error) {
              console.error('Error fetching long-term token', error);
            }
          }
    }
}

// export function getDate(data){
//     return activityAxios({
//         url: '/list',
//         method: 'get',
//         params: data
//       })
// }